﻿using Newtonsoft.Json;

namespace CkSoftware.GroupMe.Sdk.Core.Dao
{
	/// <summary>
	/// GroupMe message image attachment.
	/// </summary>
	public class GroupMeImageAttachment : GroupMeAttachmentBase
	{
		/// <summary>
		/// Defines the type of the attachment implementation.
		/// </summary>
		public override AttachmentType Type
		{
			get { return AttachmentType.Image; }
		}

		/// <summary>
		/// The url of the image attachment. Must be an ImagingService image url according to the GroupMe API documentation.
		/// </summary>
		[JsonProperty("url")]
		public string Url { get; set; }
	}
}